package com.lottery.im.api.result.entity.msg_bulletin;

import android.databinding.BaseObservable;
import android.text.Html;
import android.text.Spanned;

public class Bulletins extends BaseObservable {

  /**
   * title : 重要公告
   * bulletinId : 326
   * createDate : 20180823183743
   */

  private String title;
  private int bulletinId;
  private String createDate;

  public String getTitle() {
    Spanned spanned = Html.fromHtml(title);
    return spanned.toString();
  }

  public void setTitle(String title) {
    this.title=title;
  }

  public int getBulletinId() {
    return bulletinId;
  }

  public void setBulletinId(int bulletinId) {
    this.bulletinId = bulletinId;
  }

  public String getCreateDate() {
    createDate=createDate.substring(0,8);
    StringBuilder builder = new StringBuilder(createDate);
    builder.insert(4,"-");
    builder.insert(7,"-");
    return builder.toString();
  }

  public void setCreateDate(String createDate) {
    this.createDate=createDate;
  }

}
